/*
 * @Author: sympsel sympsel@outlook.com
 * @Date: 2025-07-17 12:07:40
 * @LastEditors: sympsel sympsel@outlook.com
 * @LastEditTime: 2025-07-17 12:40:42
 * @FilePath: \work25_7_17\src\test.c
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#include "Queue.h"

void test1() {
    Queue* queue = QueueInit();
    QueuePush(queue, 1);
    QueuePush(queue, 2);
    QueuePush(queue, 3);
    printf("size: %d\n", QueueSize(queue));
    while (!QueueEmpty(queue)) {
        printf("%d ", QueueFront(queue));
        QueuePop(queue);
    }
    printf("\n");
    if (QueueEmpty(queue)) {
        printf("Empty!\n");
    }
    QueuePush(queue, 1);
    while (!QueueEmpty(queue)) {
        printf("%d ", QueueFront(queue));
        QueuePop(queue);
    }
    printf("\n");
    QueueDestroy(queue);
    queue = NULL;
}

int main() {
    test1();
    return 0;
}
